]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ctrlAltTab: Only add to the focus manager if we have an StWidget.
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Dec 2012 19:02:15 +0000 (14:02 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 6 Dec 2012 17:25:37 +0000 (12:25 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=689653

js/ui/ctrlAltTab.js

index 8e16b5b7ca3fd8295a2e00dd3344e5bb25ff8645..215a7227158898a2a143ae357c066065b98a6b08 100644 (file)
@@ -39,13 +39,16 @@ const CtrlAltTabManager = new Lang.Class({
 
         this._items.push(item);
         root.connect('destroy', Lang.bind(this, function() { this.removeGroup(root); }));
-        global.focus_manager.add_group(root);
+        if (root instanceof St.Widget)
+            global.focus_manager.add_group(root);
     },
 
     removeGroup: function(root) {
-        global.focus_manager.remove_group(root);
+        if (root instanceof St.Widget)
+            global.focus_manager.remove_group(root);
         for (let i = 0; i < this._items.length; i++) {
             if (this._items[i].root == root) {
+                let item = this._items[i];
                 this._items.splice(i, 1);
                 return;
             }